#pragma once

/**
 * Update Manager.
 * 
 * Looks for xml at IDS_CURRENT_VERSION_URL link.
 * File must contains <version> and <update_link> elements:
 * <?xml version="1.0" encoding="UTF-8"?>
 * <info>
 *   <version>1.0.0.1</version>
 *   <update_link>http://example.com/Setup.msi</update_link>
 *  </info>
 */
class CUpdateManager : public Singleton<CUpdateManager>
{
protected: friend class creator;
	CUpdateManager(void);

	CString m_strUpdateURL;

public:
	bool IsUpToDate(BOOL bForceCheck = FALSE);

	const CString &GetUpdateURL() const
	{
		return m_strUpdateURL;
	}
};
